package com.dream.pojo;

import java.util.ArrayList;
import java.util.List;

public class UserDreamExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UserDreamExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUidIsNull() {
            addCriterion("uid is null");
            return (Criteria) this;
        }

        public Criteria andUidIsNotNull() {
            addCriterion("uid is not null");
            return (Criteria) this;
        }

        public Criteria andUidEqualTo(Integer value) {
            addCriterion("uid =", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotEqualTo(Integer value) {
            addCriterion("uid <>", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThan(Integer value) {
            addCriterion("uid >", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThanOrEqualTo(Integer value) {
            addCriterion("uid >=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThan(Integer value) {
            addCriterion("uid <", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThanOrEqualTo(Integer value) {
            addCriterion("uid <=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidIn(List<Integer> values) {
            addCriterion("uid in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotIn(List<Integer> values) {
            addCriterion("uid not in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidBetween(Integer value1, Integer value2) {
            addCriterion("uid between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotBetween(Integer value1, Integer value2) {
            addCriterion("uid not between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andQqidIsNull() {
            addCriterion("qqid is null");
            return (Criteria) this;
        }

        public Criteria andQqidIsNotNull() {
            addCriterion("qqid is not null");
            return (Criteria) this;
        }

        public Criteria andQqidEqualTo(String value) {
            addCriterion("qqid =", value, "qqid");
            return (Criteria) this;
        }

        public Criteria andQqidNotEqualTo(String value) {
            addCriterion("qqid <>", value, "qqid");
            return (Criteria) this;
        }

        public Criteria andQqidGreaterThan(String value) {
            addCriterion("qqid >", value, "qqid");
            return (Criteria) this;
        }

        public Criteria andQqidGreaterThanOrEqualTo(String value) {
            addCriterion("qqid >=", value, "qqid");
            return (Criteria) this;
        }

        public Criteria andQqidLessThan(String value) {
            addCriterion("qqid <", value, "qqid");
            return (Criteria) this;
        }

        public Criteria andQqidLessThanOrEqualTo(String value) {
            addCriterion("qqid <=", value, "qqid");
            return (Criteria) this;
        }

        public Criteria andQqidLike(String value) {
            addCriterion("qqid like", value, "qqid");
            return (Criteria) this;
        }

        public Criteria andQqidNotLike(String value) {
            addCriterion("qqid not like", value, "qqid");
            return (Criteria) this;
        }

        public Criteria andQqidIn(List<String> values) {
            addCriterion("qqid in", values, "qqid");
            return (Criteria) this;
        }

        public Criteria andQqidNotIn(List<String> values) {
            addCriterion("qqid not in", values, "qqid");
            return (Criteria) this;
        }

        public Criteria andQqidBetween(String value1, String value2) {
            addCriterion("qqid between", value1, value2, "qqid");
            return (Criteria) this;
        }

        public Criteria andQqidNotBetween(String value1, String value2) {
            addCriterion("qqid not between", value1, value2, "qqid");
            return (Criteria) this;
        }

        public Criteria andQqnameIsNull() {
            addCriterion("qqname is null");
            return (Criteria) this;
        }

        public Criteria andQqnameIsNotNull() {
            addCriterion("qqname is not null");
            return (Criteria) this;
        }

        public Criteria andQqnameEqualTo(String value) {
            addCriterion("qqname =", value, "qqname");
            return (Criteria) this;
        }

        public Criteria andQqnameNotEqualTo(String value) {
            addCriterion("qqname <>", value, "qqname");
            return (Criteria) this;
        }

        public Criteria andQqnameGreaterThan(String value) {
            addCriterion("qqname >", value, "qqname");
            return (Criteria) this;
        }

        public Criteria andQqnameGreaterThanOrEqualTo(String value) {
            addCriterion("qqname >=", value, "qqname");
            return (Criteria) this;
        }

        public Criteria andQqnameLessThan(String value) {
            addCriterion("qqname <", value, "qqname");
            return (Criteria) this;
        }

        public Criteria andQqnameLessThanOrEqualTo(String value) {
            addCriterion("qqname <=", value, "qqname");
            return (Criteria) this;
        }

        public Criteria andQqnameLike(String value) {
            addCriterion("qqname like", value, "qqname");
            return (Criteria) this;
        }

        public Criteria andQqnameNotLike(String value) {
            addCriterion("qqname not like", value, "qqname");
            return (Criteria) this;
        }

        public Criteria andQqnameIn(List<String> values) {
            addCriterion("qqname in", values, "qqname");
            return (Criteria) this;
        }

        public Criteria andQqnameNotIn(List<String> values) {
            addCriterion("qqname not in", values, "qqname");
            return (Criteria) this;
        }

        public Criteria andQqnameBetween(String value1, String value2) {
            addCriterion("qqname between", value1, value2, "qqname");
            return (Criteria) this;
        }

        public Criteria andQqnameNotBetween(String value1, String value2) {
            addCriterion("qqname not between", value1, value2, "qqname");
            return (Criteria) this;
        }

        public Criteria andQqimgIsNull() {
            addCriterion("qqimg is null");
            return (Criteria) this;
        }

        public Criteria andQqimgIsNotNull() {
            addCriterion("qqimg is not null");
            return (Criteria) this;
        }

        public Criteria andQqimgEqualTo(String value) {
            addCriterion("qqimg =", value, "qqimg");
            return (Criteria) this;
        }

        public Criteria andQqimgNotEqualTo(String value) {
            addCriterion("qqimg <>", value, "qqimg");
            return (Criteria) this;
        }

        public Criteria andQqimgGreaterThan(String value) {
            addCriterion("qqimg >", value, "qqimg");
            return (Criteria) this;
        }

        public Criteria andQqimgGreaterThanOrEqualTo(String value) {
            addCriterion("qqimg >=", value, "qqimg");
            return (Criteria) this;
        }

        public Criteria andQqimgLessThan(String value) {
            addCriterion("qqimg <", value, "qqimg");
            return (Criteria) this;
        }

        public Criteria andQqimgLessThanOrEqualTo(String value) {
            addCriterion("qqimg <=", value, "qqimg");
            return (Criteria) this;
        }

        public Criteria andQqimgLike(String value) {
            addCriterion("qqimg like", value, "qqimg");
            return (Criteria) this;
        }

        public Criteria andQqimgNotLike(String value) {
            addCriterion("qqimg not like", value, "qqimg");
            return (Criteria) this;
        }

        public Criteria andQqimgIn(List<String> values) {
            addCriterion("qqimg in", values, "qqimg");
            return (Criteria) this;
        }

        public Criteria andQqimgNotIn(List<String> values) {
            addCriterion("qqimg not in", values, "qqimg");
            return (Criteria) this;
        }

        public Criteria andQqimgBetween(String value1, String value2) {
            addCriterion("qqimg between", value1, value2, "qqimg");
            return (Criteria) this;
        }

        public Criteria andQqimgNotBetween(String value1, String value2) {
            addCriterion("qqimg not between", value1, value2, "qqimg");
            return (Criteria) this;
        }

        public Criteria andAdminIsNull() {
            addCriterion("admin is null");
            return (Criteria) this;
        }

        public Criteria andAdminIsNotNull() {
            addCriterion("admin is not null");
            return (Criteria) this;
        }

        public Criteria andAdminEqualTo(Integer value) {
            addCriterion("admin =", value, "admin");
            return (Criteria) this;
        }

        public Criteria andAdminNotEqualTo(Integer value) {
            addCriterion("admin <>", value, "admin");
            return (Criteria) this;
        }

        public Criteria andAdminGreaterThan(Integer value) {
            addCriterion("admin >", value, "admin");
            return (Criteria) this;
        }

        public Criteria andAdminGreaterThanOrEqualTo(Integer value) {
            addCriterion("admin >=", value, "admin");
            return (Criteria) this;
        }

        public Criteria andAdminLessThan(Integer value) {
            addCriterion("admin <", value, "admin");
            return (Criteria) this;
        }

        public Criteria andAdminLessThanOrEqualTo(Integer value) {
            addCriterion("admin <=", value, "admin");
            return (Criteria) this;
        }

        public Criteria andAdminIn(List<Integer> values) {
            addCriterion("admin in", values, "admin");
            return (Criteria) this;
        }

        public Criteria andAdminNotIn(List<Integer> values) {
            addCriterion("admin not in", values, "admin");
            return (Criteria) this;
        }

        public Criteria andAdminBetween(Integer value1, Integer value2) {
            addCriterion("admin between", value1, value2, "admin");
            return (Criteria) this;
        }

        public Criteria andAdminNotBetween(Integer value1, Integer value2) {
            addCriterion("admin not between", value1, value2, "admin");
            return (Criteria) this;
        }

        public Criteria andStateIsNull() {
            addCriterion("state is null");
            return (Criteria) this;
        }

        public Criteria andStateIsNotNull() {
            addCriterion("state is not null");
            return (Criteria) this;
        }

        public Criteria andStateEqualTo(Integer value) {
            addCriterion("state =", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotEqualTo(Integer value) {
            addCriterion("state <>", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThan(Integer value) {
            addCriterion("state >", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("state >=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThan(Integer value) {
            addCriterion("state <", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThanOrEqualTo(Integer value) {
            addCriterion("state <=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateIn(List<Integer> values) {
            addCriterion("state in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotIn(List<Integer> values) {
            addCriterion("state not in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateBetween(Integer value1, Integer value2) {
            addCriterion("state between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotBetween(Integer value1, Integer value2) {
            addCriterion("state not between", value1, value2, "state");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}